<template>
	<view class="moment">
		<moment-info :momentInfo="moment.momentInfo"
		@click="onClickMoment"></moment-info>
		<moment-content :content="moment.content"
		@click="onClickMoment"></moment-content>
		<moment-interact :interactInfo="moment.interactInfo">
		</moment-interact>
	</view>
</template>

<script setup>
	defineProps(["moment"])

	function onClickMoment() {
		console.log("点击");
		uni.navigateTo({
			url: '/pages/moments/moments-detailed/moments-detailed'
		})
	}
</script>

<style lang="scss" scoped>
	.moment {
		border-radius: 10px;
		padding: 10px;
		background: #ffffff;
		margin: 5px;
	}
</style>